<form id="fromId" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea  class="form-control title" rows="4" name="row[title]"
                                cols="50"  ></textarea>
        </div>
    </div>
    
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">分类:</label>
        <div class="col-xs-12 col-sm-8">
            <select  class="form-control category_id"  name="row[category_id]">
                <option value="" >请选择</option>
                {foreach name="category_list" item="vo"}
                <option value="{$vo.id}" >{$vo.name}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">配送方式:</label>
        <div class="col-xs-12 col-sm-8">
            <select  class="form-control peisong"  name="row[peisong]">
                <option value="0,1" >买家付邮</option>
                <option value="1,0" >自提</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="control-label col-xs-12 col-sm-2">预估重量:</label>
        <div class="col-xs-12 col-sm-8">
            <select  class="form-control weight"  name="row[weight]">
                <option value="" >请选择</option>
                <option value="1kg" >1kg</option>
                <option value="2kg" >2kg</option>
                <option value="3kg" >3kg</option>
                <option value="4kg" >4kg</option>
                <option value="5kg" >5kg</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="email" class="control-label col-xs-12 col-sm-2">设置积分:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="email" class="form-control price" id="email" name="row[price]" value="0"  />
        </div>
    </div>
    <div class="form-group">
        <label for="c-birthday" class="control-label col-xs-12 col-sm-2">产品图片:</label>
        <div class="col-xs-12 col-sm-8">
                <div class="input-group">
                    <input id="c-avata" data-rule="" class="form-control imgs" size="50" name="row[imgs]" type="text" value=""  style="display: none;">
                    <div class="input-group-addon no-border no-padding">
                        <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avata" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-avata"><i class="fa fa-upload"></i> 上传</button></span>
                        <span><button type="button" id="fachoose-avatars" class="btn btn-primary fachoose" data-input-id="c-avata" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                    </div>
                    <span class="msg-box n-right" for="c-avata"></span>
                </div>
                
                <ul class="row list-inline plupload-preview" id="p-avata" style="width: 100%;"></ul>
        </div>
    </div>
    <!-- <div class="form-group  layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed ">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div> -->
</form>
